package com.mashibing.juc.c_001;

public class T {

    private int count=10;
    private Object o=new Object();

    public void m(){
        synchronized (o) { //任何线程都要执行下面的代码，必须先拿到殴打锁
            count--;
            System.out.println(Thread.currentThread().getName() + "count=" + count);
        }
    }

}
